<?php
$this->breadcrumbs=array(
	'Jogadores'=>array('index'),
	$model->name=>array('view','id'=>$model->id),
	'Alterar',
);

$this->menu=array(
	array('label'=>'Listar Jogadores','url'=>array('index')),
	array('label'=>'Cadastrar Jogador','url'=>array('create',
						'team_id' => $model->category->team_id,
						'return_url' => '/team/view/' . $model->category->team_id 
				) ,
				'visible' => $_SESSION ['user']->username == 'admin' || $_SESSION ['owner']->id == $model->category->team->owner_id,),
	array('label'=>'Visualizar Jogador','url'=>array('view','id'=>$model->id)),
);
?>

<h1>Alteração de Dados do <?php echo $model->id; ?></h1>

<?php echo $this->renderPartial('_form',array('model'=>$model)); ?>